package com.gugee.common.web.system.user.dto;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.gugee.common.web.system.user.model.User;
import lombok.Data;
import org.mapstruct.Mapper;

import javax.validation.constraints.NotEmpty;

@Data
@JsonIgnoreProperties
public class UserRegister {
    private Long id;
    private String firstName;
    private Boolean activation = true;
    private String lastName;
    private Long parentId = 0L;
    @NotEmpty(message = "Email is not a valid email address")
    private String email;
    @NotEmpty(message = "Please enter your password")
    private String password;
    @NotEmpty(message = "Please enter your code")
    private String code;


    @Mapper(componentModel = "spring")
    public interface UserMapper {
        UserReceiveDto mapper(User dto);

    }
}
